package com.sinbader.xiaole.common.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;


@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("check_stock_item")
@ApiModel(value="CheckStockItem对象", description="盘点项")
public class CheckStockItem implements Serializable {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "商品ID")
    @TableField("product_id")
    private Long productId;

    @ApiModelProperty(value = "货架位ID")
    @TableField("shelf_id")
    private Long shelfId;

    @ApiModelProperty(value = "仓库ID")
    @TableField("warehouse_id")
    private Long warehouseId;

    @ApiModelProperty(value = "店铺ID")
    @TableField("shop_id")
    private Long shopId;

    @ApiModelProperty(value = "创建者（盘点者）")
    @TableField("creator_id")
    private Long creatorId;

    @ApiModelProperty(value = "盘点的实际数量")
    @TableField("count")
    private Integer count;

    @ApiModelProperty(value = "盘点的数量差值")
    @TableField("count_change")
    private Integer countChange;

    @ApiModelProperty(value = "状态 (0:未审核 1：已审核）")
    @TableField("status")
    private Integer status;

    @ApiModelProperty(value = "盘点备注")
    @TableField("check_message")
    private String checkMessage;

    @ApiModelProperty(value = "盘点时间")
    @TableField("check_time")
    private Date checkTime;

    @ApiModelProperty(value = "盘点人")
    @TableField("check_user_id")
    private Long checkUserId;

    @ApiModelProperty(value = "审核时间")
    @TableField("audit_time")
    private Date auditTime;

    @ApiModelProperty(value = "审核人")
    @TableField("audit_user_id")
    private Long auditUserId;

    @ApiModelProperty(value = "审核备注")
    @TableField("audit_message")
    private String auditMessage;


}
